package com.foreverwin.mes.so.mapper;

import com.baomidou.mybatisplus.mapper.Wrapper;
import com.foreverwin.mes.so.model.ShopOrderDispatch;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.foreverwin.mes.so.model.ShopOrderDispatchDetail;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 工单派工主表 Mapper 接口
 * </p>
 *
 * @author Syngna
 * @since 2020-02-06
 */
@Repository
public interface ShopOrderDispatchMapper extends BaseMapper<ShopOrderDispatch> {
    List<ShopOrderDispatch> selectDispatchShopOrderList(RowBounds rowBounds, @Param("locale") String locale, @Param("site") String site, @Param("shopOrder") String shopOrder, @Param("item")String item, @Param("itemDescription") String itemDescription, @Param("globalQuery") String globalQuery);

    List<ShopOrderDispatch> selectDispatchShopOrderList(@Param("locale") String locale, @Param("site") String site, @Param("shopOrder") String shopOrder, @Param("item")String item, @Param("itemDescription") String itemDescription, @Param("globalQuery") String globalQuery);

    List<ShopOrderDispatchDetail> selectMaxDispDetailGroupNo(@Param("handleList") List<String> handleList);

    List<ShopOrderDispatch> selectByShopOrder(@Param("site") String site, @Param("shopOrder") String shopOrder);
}